From 29ad3b3991a3c8a9705147a4d273fc3d7a7707da Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 8 Aug 2012 10:42:17 +0200 Subject: [PATCH] Follow-up I47412b67: pass an array of query parameters to Linker::link() Spotted by Daniel Werner in that change. Change-Id: I8ded52b8285b2af0f69cc586abe532ea56cc18bb --- includes/OutputPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6c1ac4bd10..a9c7d1464a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1725,7 +1725,7 @@ class OutputPage extends ContextSource { /** * Return a Vary: header on which to vary caches. Based on the keys of $mVaryHeader, * such as Accept-Encoding or Cookie - * + * * @return String */ public function getVaryHeader() { @@ -2351,7 +2351,7 @@ $templates * Add a "return to" link pointing to a specified title * * @param $title Title to link - * @param $query String query string + * @param $query Array query string parameters * @param $text String text of the link (input is not escaped) */ public function addReturnTo( $title, $query = array(), $text = null ) { @@ -2391,7 +2391,7 @@ $templates $titleObj = Title::newMainPage(); } - $this->addReturnTo( $titleObj, $returntoquery ); + $this->addReturnTo( $titleObj, wfCgiToArray( $returntoquery ) ); } /** -- 2.20.1